﻿import { ref, computed } from 'vue';
import { defineStore } from 'pinia';
import { getStore, setStore } from '@/utils/utils';

export const useUserStore = defineStore('user', () => {
    const config = ref(getStore('esign_websit_config'));
    const setUserConfig = (val: string) => {
        config.value = val;
        setStore('esign_websit_config', val);
    };

    return { config, setUserConfig };
});
